import QtQuick 2.0
import "../../../customqml"
Rectangle{
    Loader{
        id:animLoader
        x:320
        y:100
        //anchors.centerIn: parent
        //anchors.fill: parent
        width: 480
        height: 600
    }
    NormalBtn{
        x:220
        y:100
        id:bt_1
        text: "OpenGL着色器"
        MouseArea{
            anchors.fill: parent
            acceptedButtons: Qt.LeftButton
            onClicked: {
                if(mouse.button===Qt.LeftButton)
                {
                    animLoader.source="/qml/main/QmlInBookMain/ShaderEffectSub/ShaderDefault.qml"
                }
            }
        }
    }
    NormalBtn{
        x:320
        y:100
        id:bt_2
        text: "片段着色器1"
        MouseArea{
            anchors.fill: parent
            acceptedButtons: Qt.LeftButton
            onClicked: {
                if(mouse.button===Qt.LeftButton)
                {
                    animLoader.source="/qml/main/QmlInBookMain/ShaderEffectSub/ShaderGenie6.qml"
                }
            }
        }
    }
    NormalBtn{
        x:420
        y:100
        id:bt_3
        text: "片段着色器2"
        MouseArea{
            anchors.fill: parent
            acceptedButtons: Qt.LeftButton
            onClicked: {
                if(mouse.button===Qt.LeftButton)
                {
                    animLoader.source="/qml/main/QmlInBookMain/ShaderEffectSub/ShaderGenie2.qml"
                }
            }
        }
    }
    NormalBtn{
        x:520
        y:100
        id:bt_4
        text: "片段着色器3"
        MouseArea{
            anchors.fill: parent
            acceptedButtons: Qt.LeftButton
            onClicked: {
                if(mouse.button===Qt.LeftButton)
                {
                    animLoader.source="/qml/main/QmlInBookMain/ShaderEffectSub/ShaderGenie3.qml"
                }
            }
        }
    }
    NormalBtn{
        x:620
        y:100
        id:bt_5
        text: "片段着色器4"
        MouseArea{
            anchors.fill: parent
            acceptedButtons: Qt.LeftButton
            onClicked: {
                if(mouse.button===Qt.LeftButton)
                {
                    animLoader.source="/qml/main/QmlInBookMain/ShaderEffectSub/ShaderGenie4.qml"
                }
            }
        }
    }
    NormalBtn{
        x:220
        y:200
        id:bt_6
        text: "片段着色器5"
        MouseArea{
            anchors.fill: parent
            acceptedButtons: Qt.LeftButton
            onClicked: {
                if(mouse.button===Qt.LeftButton)
                {
                    animLoader.source="/qml/main/QmlInBookMain/ShaderEffectSub/ShaderGenie5.qml"
                }
            }
        }
    }
    NormalBtn{
        x:320
        y:200
        id:bt_7
        text: "片段着色器6"
        MouseArea{
            anchors.fill: parent
            acceptedButtons: Qt.LeftButton
            onClicked: {
                if(mouse.button===Qt.LeftButton)
                {
                    animLoader.source="/qml/main/QmlInBookMain/ShaderEffectSub/ShaderGenie6.qml"
                }
            }
        }
    }
    NormalBtn{
        x:420
        y:200
        id:bt_8
        text: "片段着色器7"
        MouseArea{
            anchors.fill: parent
            acceptedButtons: Qt.LeftButton
            onClicked: {
                if(mouse.button===Qt.LeftButton)
                {
                    animLoader.source="/qml/main/QmlInBookMain/ShaderEffectSub/geniedemo.qml"
                }
            }
        }
    }
    NormalBtn{
        x:520
        y:200
        id:bt_9
        text: "波浪着色器"
        MouseArea{
            anchors.fill: parent
            acceptedButtons: Qt.LeftButton
            onClicked: {
                if(mouse.button===Qt.LeftButton)
                {
                    animLoader.source="/qml/main/QmlInBookMain/ShaderEffectSub/ShaderWave.qml"
                }
            }
        }
    }
    NormalBtn{
        x:620
        y:200
        id:bt_10
        text: "剧幕着色器"
        MouseArea{
            anchors.fill: parent
            acceptedButtons: Qt.LeftButton
            onClicked: {
                if(mouse.button===Qt.LeftButton)
                {
                    animLoader.source="/qml/main/QmlInBookMain/ShaderEffectSub/curtaindemo.qml"
                }
            }
        }
    }
    NormalBtn{
        x:720
        y:200
        id:bt_11
        text: "QT图像效果库"
        MouseArea{
            anchors.fill: parent
            acceptedButtons: Qt.LeftButton
            onClicked: {
                if(mouse.button===Qt.LeftButton)
                {
                    animLoader.source="/qml/main/QmlInBookMain/ShaderEffectSub/ShaderGraphicesEffect.qml"
                }
            }
        }
    }
    NormalBtn{
        x:720
        y:200
        id:bt_12
        text: "QT OpenGL渲染YUV"
        MouseArea{
            anchors.fill: parent
            acceptedButtons: Qt.LeftButton
            onClicked: {
                if(mouse.button===Qt.LeftButton)
                {
                    animLoader.source="/qml/main/QmlInBookMain/ShaderEffectSub/ShaderOpenGlYUV.qml"
                }
            }
        }
    }
}


